package com.wing.order.model.request;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import com.wing.order.model.entity.Purchase;
import java.time.LocalDateTime;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 采购Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class PurchaseForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 排序
     */
    private Integer sortNumber;

    /**
     * 采购部门
     */
    private String department;

    /**
     * 订单金额
     */
    private Integer orderMoney;

    /**
     * 采购单编号
     */
    private String code;

    /**
     * 入库类型
     */
    private Purchase.StockType stockType;

    /**
     * 入库SKU数
     */
    private Integer skuNum;

    /**
     * 供应商ID
     */
    private Long enterpriseId;

    /**
     * 供应商
     */
    private String supplier;

    /**
     * 供应商联系人
     */
    private String supplierName;

    /**
     * 采购类型
     */
//    private Purchase.Type type;

    /**
     * 紧急程度
     */
//    private Purchase.ExigencyLevel exigencyLevel;

    /**
     * 状态
     */
    private Purchase.Status status;

    /**
     * 订单审核人
     */
    private String orderAuditor;

    /**
    * 审核时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;

    /**
     * 审核人
     */
    private Long auditorId;

    /**
     * 审核人名称
     */
    private String auditorName;

    /**
     * 审核意见
     */
    private String auditRemark;

    /**
     * day
     */
    private Integer day;

    /**
     * 序号
     */
    private Integer no;


    /**
     * 采购详情
     */
    private List<PurchaseDetailForm> purchaseDetailList;

    public interface Add{}

    public interface Update{}

    /**
     * 库存数
     */
    private Integer stockNumber;

    /**
     * 订单审核人id
     */
    private Long orderAuditorId;

    /**
     * 采购类型id
     */
    private Long purchaseTypeId;

    private String purchaseTypeName;
    /**
     * 紧急程度id
     */
    private Long purchaseDegreeId;

    private String purchaseDegreeName;
}
